"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HttpHelper = void 0;
const request = require('request');
class HttpHelper {
    static sendHttpRequest(params, url, callback = null) {
        let options = {
            url: url,
            headers: {
                'Content-Type': 'application/json',
                // "Authorization":"",
            },
            body: JSON.stringify(params)
            // body: params
        };
        request.post(options, (err, response, body) => {
            // Logger.log("sendHttpRequest ==1===", err)
            // Logger.log("sendHttpRequest ===2==", response)
            // Logger.log("sendHttpRequest ===3==", body)
            callback && callback(response, body);
        });
    }
}
exports.HttpHelper = HttpHelper;
HttpHelper.url = "http://api.tushare.pro";
HttpHelper.token = "f698b2b8a7463e5fc66a7e0add1d32d7ce5bce54ac11291d3505193a";
